/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: PageHelperController
 * Author:   pc
 * Date:     2019/9/12 13:56
 * Description: 分页测试控制层
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.example.rabbitmqdemo.controller;

import com.example.rabbitmqdemo.entity.SysLog;
import com.example.rabbitmqdemo.service.SysLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

/**
 * 〈功能：〉<br> 
 * 〈分页测试控制层〉
 * @author liuhaoran
 * @create 2019/9/12 13:56
 * @since 1.0.0
 */
@Controller
public class PageHelperController {
	@Autowired
	SysLogService sysLogService;

	@ResponseBody
	@PostMapping("/pageLisrSysLog")
	public Page<SysLog> pageLisrSysLog(@RequestParam("pageNum")  int pageNum, @RequestParam("pageSize")  int pageSize){
		return sysLogService.selectAllSysLog(pageNum, pageSize);
	}
}